package com.pig4cloud.pig.model.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pig4cloud.pig.admin.api.dto.UserDTO;
import com.pig4cloud.pig.model.api.entity.ModelSortEntity;
import com.pig4cloud.pig.model.mapper.ModelSortMapper;
import com.pig4cloud.pig.model.service.ModelSortService;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
/**
 * 模型分类表
 *
 * @author wangyl
 * @date 2024-06-06 13:59:40
 */
@Service
public class ModelSortServiceImpl extends ServiceImpl<ModelSortMapper, ModelSortEntity> implements ModelSortService {

	/**
	 * 分页查询分类管理
	 * @param page 分页对象
	 * @param userDTO 参数列表
	 * @return
	 */
	@Override
	public IPage getListpage(Page page, String name,Integer status) {
		return baseMapper.getListpage(page, name,status);
	}

	/**
	 * 查看根据id
	 */
	@Override
	public ModelSortEntity getBySortId(Long id) {
		return baseMapper.getBySortId(id);
	}
}
